import type { FireCustomAttributes } from "@lib/types";
import type { JSX } from "solid-js/jsx-runtime";
import type { FormControlSize, FcValue } from "../types";
import type { ValueAccessor } from "solid-form-context";

export const CustomAttributeKeys = ['ref', 'classList', '$ServerOnly']

export interface FcInputProps
    extends Omit<JSX.InputHTMLAttributes<HTMLInputElement>, 'value' | 'classList'>,
    FireCustomAttributes<HTMLInputElement>,
    ValueAccessor<FcValue> {
    controlSize?: FormControlSize
    readonlyPlainText?: boolean
}
